<?php echo $this->Html->css('pikachu/pikachu_games/view')?>
<?php echo $this->Html->css('pikachu/pikachu_games/view/standard/style.css')?>
<?php echo $this->Html->script('pikachu/pikachu_games/pikachu', array('inline'=> false))?>

<div class="pikachu">
	<h1><?php echo $this->element('google/plus_medium')?>  Chơi game Pikachu Online</h1>
	<div id="pikachu_area" class="pikachu_area">
		
		<div id="game-records" class="pikachu_records">
			<?php if(empty($scores)) : ?>
				Chưa có kỷ lục nào được ghi
			<?php else : ?>
				<?php $i = 0;?>
				<b>Bảng xếp hạng</b>
				<ul>
				<?php foreach($scores as $item) : ?>
					<?php $i++?>
					<li>
						<span class="number"><?php echo $i?></span>/ 
						<?php echo $item['PikachuPlayer']['email']?> 
						đạt <?php echo $item['PikachuScore']['score']?> điểm
					</li>
				<?php endforeach;?>
				</ul>
			<?php endif;?>
		</div>
		<div id="game-panel">
			
		</div>
		<div id="game-debug">
		</div>
		<div style="clear:both"></div>
	</div>
</div>
<div style="clear:both"></div>

<?php echo $this->Html->scriptStart(array('inline' => false))?>
	$(function(){
		PIKACHU.init();
	});
<?php echo $this->Html->scriptEnd()?>
